
public class Juego implements Runnable{
	Almacen almacen = new Almacen() ;
	
	@Override
	public void run() {
		Almacenero almacenero = new Almacenero(this.almacen);
		Mounstro monster1 = new Mounstro(this.almacen,"monster1");
		Mounstro monster2 = new Mounstro(this.almacen,"monster2");
		Mounstro monster3 = new Mounstro(this.almacen,"monster3");
		
		Thread hiloAlmacenero = new Thread(almacenero);
		Thread hiloMonster1 = new Thread(monster1);
		Thread hiloMonster2 = new Thread(monster2);
		Thread hiloMonster3 = new Thread(monster3);
		
		hiloAlmacenero.start();
		hiloMonster1.start();
		hiloMonster2.start();
		hiloMonster3.start();
		
		try {
			hiloAlmacenero.join();
			hiloMonster1.join();
			hiloMonster2.join();
			hiloMonster3.join();
		} catch (InterruptedException e) {}
		System.out.println("BIEN PELEADO CAMARADA !!!!! ");
	}
	public Almacen getAlmacen() {
		return almacen;
	}
	public void setAlmacen(Almacen almacen) {
		this.almacen = almacen;
	}

}
